// 统一错误处理
module.exports = {
    categoryError: {
        code: '10601',
        message: '商品分类传入格式错误',
        result: ''
    },
    createCategoryError: {
        code: '10602',
        message: '商品分类添加失败',
        result: ''
    },
    removeCategoryError: {
        code: '10603',
        message: '商品分类删除失败',
        result: ''
    },
    checkIdExist: {
        code: '10604',
        message: '该商品有子类，请先删除子类后再删除该商品分类',
        result: ''
    },
    checkIdError: {
        code: '10605',
        message: '获取商品分类id失败',
        result: ''
    },
    updateCategoryError: {
        code: '10606',
        message: '修改商品分类失败',
        result: ''
    },
    checkCategoryExist: {
        code: '10607',
        message: '没有该商品分类',
        result: ''
    },
    getCategoryError: {
        code: '10607',
        message: '获取商品分类失败',
        result: ''
    },
    checkIdfatherExist: {
        code: '10608',
        message: '没有该父类商品分类',
        result: ''
    },
    searchCategoryError: {
        code: '10609',
        message: '查询分类失败',
        result: ''
    },
    searchcategory_nameError: {
        code: '10610',
        message: '分类名已经存在',
        result: ''
    },

}